package com.mzj.saas.jobs.EnterpriseData.entity;

import com.mzj.saas.jobs.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 机构层级关系设置表
 */
@Entity
@Table(name = "saas_department_hierarchy")
public class DepartmentHierarchy extends IdEntity {
    @Basic
    @Column(name = "org_id", nullable = true)
    private Long orgId; //机构id

    @Basic
    @Column(name = "parent_id", nullable = true)
    private Long parentId; //父级id

    @Basic
    @Column(name = "enterprise_tag_id", nullable = true)
    private Long enterpriseTagId; //企业标签

    @Basic
    @Column(name = "tag_id", nullable = true)
    private Long tagId; //标签id

    @Basic
    @Column(name = "name", nullable = true)
    private String name; //名称

    @Basic
    @Column(name = "area_id", nullable = true)
    private Long areaId; //区域id

    @Basic
    @Column(name = "auditor_user_id", nullable = true)
    private String auditorUserId; //审批人

    @Basic
    @Column(name = "code", nullable = true)
    private String code; //编码

    //状态0停用1启用
    @Basic
    @Column(name = "status", nullable = true)
    private Integer status;
    @Basic
    @Column(name = "sortby", nullable = true)
    private Integer sortby; //排序
    @Basic
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime; //最后更新时间

    @Basic
    @Column(name = "merchants_type", nullable = true)
    private Integer merchantsType; //收款方式：0平台商户号收款 1企业商户号收款

    @Basic
    @Column(name = "bind_auit_status", nullable = true)
    private Integer bindAuitStatus; //公租房审批状态：0需要审批 1不用审批   默认0

    public Integer getMerchantsType() {
        return merchantsType;
    }

    public void setMerchantsType(Integer merchantsType) {
        this.merchantsType = merchantsType;
    }

    public Integer getBindAuitStatus() {
        return bindAuitStatus;
    }

    public void setBindAuitStatus(Integer bindAuitStatus) {
        this.bindAuitStatus = bindAuitStatus;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAuditorUserId() {
        return auditorUserId;
    }

    public void setAuditorUserId(String auditorUserId) {
        this.auditorUserId = auditorUserId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSortby() {
        return sortby;
    }

    public void setSortby(Integer sortby) {
        this.sortby = sortby;
    }

    public Long getEnterpriseTagId() {
        return enterpriseTagId;
    }

    public void setEnterpriseTagId(Long enterpriseTagId) {
        this.enterpriseTagId = enterpriseTagId;
    }
}
